package com.huike.clues.web.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.huike.clues.domain.ClueExcelEntity;

import java.util.ArrayList;
import java.util.List;

public class UploadExcelListener extends AnalysisEventListener<ClueExcelEntity> {
    public static final List<ClueExcelEntity> list = new ArrayList<>();
    @Override
    public void invoke(ClueExcelEntity clueExcelEntity, AnalysisContext analysisContext) {
        list.add(clueExcelEntity);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
